/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.notify.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.notify.entity.NotiApp;
import com.thinkgem.jeesite.modules.notify.entity.NotiUserOnline;
import com.thinkgem.jeesite.modules.notify.service.dto.NotiUserOnlineRes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 推送用户在线图表DAO接口
 *
 * @author hf
 * @version 2018-12-24
 */
@MyBatisDao
public interface NotiUserOnlineDao extends CrudDao<NotiUserOnline> {

    NotiUserOnline getNotiUserOnlineByUserName(@Param("userName") String userName, @Param("appId") String appId);

    List<NotiApp> getApp(@Param("sysUserAppId") String sysUserAppId);

    NotiUserOnlineRes getOnline(@Param("appId") String appId);

}